/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ventanas;

import java.awt.Component;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author Victor
 */
public class ButtonCellRenderer implements TableCellRenderer {
 
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int row, int column) {
 
            // Devolvemos el botón tal cual
            if (value instanceof JButton) {
                return (JButton) value;
            }
            return null;
        }
 
    }
